package com.adv.ems.model.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class BusinessException extends RuntimeException {
    private int code;
    private String msg;

    public BusinessException(String msg) {
        this.msg = msg;
        this.code = 500;
    }

    public BusinessException(int code, String msg) {
        this.msg = msg;
        this.code = code;
    }
}
